<?php

class VB_Controller_Adminaction extends General_Controller_Action {
	protected $_doPostDispatch = true;

	public function init() {
		parent::init();
		$this->_destination = $this->_getParam('_destination');
		$this->_page_id = $this->_getParam('page_id');
		$this->_layoutblock_id = $this->_getParam('layoutblock_id');
		parent::init();
/*		$this->layout->setLayoutPath(APPLICATION_PATH.'/modules/'.$this->_request->getModuleName().'/views/layouts');
		$this->layout->setLayout('index');
		$crm = new Zend_Session_Namespace(ucfirst($this->getRequest()->getModuleName()).'_Login');
		if ($crm->loginStatus != 4) {
			$crm->lastpage_visited = preg_replace('/^\/?crm/','',$_SERVER['REQUEST_URI']);
			$this->_redirect('/'.$this->getRequest()->getModuleName().'/login');
		}*/
	}

	public function postDispatch() {
		if ($this->_doPostDispatch != false) {
			$this->render($this->getRequest()->getActionName(), $this->_destination);
		} else {
		}
	}
	
}